package cn.lingyueblog.roomManager.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.lingyueblog.common.utils.PageUtils;
import cn.lingyueblog.common.utils.Query;

import cn.lingyueblog.roomManager.dao.BuildingsDao;
import cn.lingyueblog.roomManager.entity.BuildingsEntity;
import cn.lingyueblog.roomManager.service.BuildingsService;


@Service("buildingsService")
public class BuildingsServiceImpl extends ServiceImpl<BuildingsDao, BuildingsEntity> implements BuildingsService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<BuildingsEntity> page = this.page(
                new Query<BuildingsEntity>().getPage(params),
                new QueryWrapper<BuildingsEntity>()
        );

        return new PageUtils(page);
    }

}